package Basepractice.P2017_11_4;

/**
 * Created by Administrator on 2017/11/4.
 */
public class Continue1 {
    public static void main(String[] args) {
        int n=0,i,m=5;
        int num=0;
        for (i=1;i<=50;i++){
            num=(int)(Math.random()*100);
            System.out.println("num="+num);
            if (num%m==0){
                n=n+1;
               continue;                      //满足条件则进行下一次的循环
            }
            System.out.println("不能被5整除num="+num);
        }
        System.out.println("n="+n);
    }
}
